package com.e3.basdoc.warehouse.service;

import java.util.List;

import com.e3.basdoc.warehouse.model.WarehouseModel;
import com.e3.core.base.ModelCacheManager;
import com.e3.core.cache.CacheManager;

public class WarehouseCacheManager extends ModelCacheManager<WarehouseModel> {
	
	public final static String WAREHOUSE_CACHE = CacheManager.DEFAULT_LRU_CACHE;
	
	public static WarehouseCacheManager INSTANCE = new WarehouseCacheManager();
	
	public void put(WarehouseModel model){
		putModel(WAREHOUSE_CACHE, model);
	}

	public WarehouseModel get(Long id) {
		return getModel(WAREHOUSE_CACHE, id);
	}
	
	public void remove(List<Long> ids){
		removeModels(WAREHOUSE_CACHE,ids);
	}

}
